<template>
  <div class="goods_name">
    <NumberCount />
    <div class="g-service">
      <dl>
        <dt>促销</dt>
        <dd>12月好物放送，App领券购买直降120元</dd>
      </dl>
      <dl>
        <dt>配送</dt>
        <dd>
          至<XtxCity
            :fullLocation="fullLocation"
            @addressChange="addressChange"
          />
        </dd>
      </dl>
      <dl>
        <dt>服务</dt>
        <dd>
          <span>无忧退货</span>
          <span>快速退款</span>
          <span>免费包邮</span>
          <a href="javascript:;">了解详情</a>
        </dd>
      </dl>
    </div>
  </div>
</template>

<script>
import NumberCount from './numberCount.vue'
import XtxCity from './city.vue'
export default {
  name: 'GoodsName',
  components: { NumberCount, XtxCity },
  data () {
    return {
      fullLocation: ''
    }
  },
  methods: {
    addressChange () {}
  }
}
</script>

<style lang="less" scoped>
@xtxColor: #30b08f;
.g-service {
  background: #f5f5f5;
  width: 500px;
  padding: 20px 10px 0 10px;
  margin-top: 10px;
  dl {
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    dt {
      width: 50px;
      color: #999;
    }
    dd {
      color: #666;
      display: flex;
      &:last-child {
        span {
          margin-right: 10px;
          &::before {
            content: "•";
            color: @xtxColor;
            margin-right: 2px;
          }
        }
        a {
          color: @xtxColor;
        }
      }
    }
  }
}
</style>
